package com.backend.common.utils;

import com.backend.common.security.AuthContext;

public class SecurityUtils {

    public static Long getCurrentUserId() {
        AuthContext context = AuthContext.getCurrentContext();
        return context != null ? context.getUserId() : null;
    }

    public static String getCurrentUsername() {
        AuthContext context = AuthContext.getCurrentContext();
        return context != null ? context.getUsername() : null;
    }

} 